<template>
  <!--    个人发展建议    -->

  <view class="allContainer" :style="[{ minHeight: '640rpx' }]">
    <!-- <image
      :src="bgUrl"
      :style="[
        { width: '750rpx' },
        { height: '913rpx' },
        { position: 'absolute' },
        
      ]"
    /> -->
    <image class="textImg" :src="partTextImgUrl" />
    <view class="imgFloatCenter"></view>
    <view :style="[{ paddingRight: '32rpx' }, { paddingLeft: '32rpx' }]">
      <view class="contentBack">
        <view :style="[
            { marginTop: '33rpx' },
            { display: 'flex' },
            { alignItems: 'center' },
          ]">
          <!-- <span class="smallTitleGreen">智慧的毕方为你</span>
        <span class="smallTitleRed">传授成功的秘诀</span> -->
          <view class="blackBox"> </view>
          <view>
            <span :class="
                titleItem.color == 1 ? 'smallTitleGreen' : 'smallTitleRed'
              " v-for="(titleItem, titleIndex) in developmentAdvice.title"
              :key="titleIndex">{{ titleItem.label }}</span>
          </view>
        </view>

        <view v-for="(descListItem, descListIndex) in developmentAdvice.descList" :key="descListIndex">
          <view class="smallTitleGreenLittle" :style="[{ marginTop: '37rpx' }]">{{ descListItem.label }}</view>

          <view class="onePartContent" :style="[{ marginTop: '32rpx' }]">
            <view v-for="(valueItem, valueIndex) in descListItem.value" style="display: flex; margin-bottom: 15rpx"
              :key="valueIndex">
              <view class="blueBox"></view>
              <view style="flex: 1">{{ valueItem }}</view>
            </view>
          </view>
          <image :src="bottomImg" class="bottomImg" />
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  // components: {},
  props: {
    isBlur: {
      type: Boolean,
      default: false,
    },

    developmentAdvice: {
      type: Object,
      default() {
        return {
          descList: [
            {
              label:
                "测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试:",
              value: [
                "测试测试测试测试测试测试测试测试",
                "测试测试测试测试测试测试测试测试",
                "测试测试测试测试测试测试测试测试",
              ],
            },
          ],
          title: [
            {
              color: "1",
              label: "测试测试测试测试",
            },
            {
              color: "2",
              label: "测试测试测试测试",
            },
          ],
        };
      },
    },
  },
  data() {
    return {
      bgUrl:
        "https://img3.job1001.com/ypMp/elan/images/career/careerAssessResult/bg_part8.png",
      partTextImgUrl: this.$imgBaseSelf + "career/careerAssessNew/title7.png",
      bottomImg:
        "https://img3.job1001.com/ypMp/elan/images/career/careerAssessNew/bottom.png",
      imgPavilion:
        "https://img3.job1001.com/ypMp/elan/images/career/careerAssessNew/flower.png",
    };
  },
  mounted() {
    uni
      .createSelectorQuery()
      .in(this)
      .select(".allContainer")
      .boundingClientRect((rect) => {
        this.$emit("listenRect", rect, 7);
      })
      .exec();
  },
  methods: {
    loadMore() {},
  },
};
</script>

<style lang="scss" scoped>
.allContainer {
  position: relative;
  padding-bottom: 30rpx;
  width: 100%;
  background-size: 100% auto;
  // background-image: url($img-base + "career/careerAssessResult/bg_part8.png");
  background-repeat: no-repeat;
}
.contentBack {
  position: relative;
  width: 100%;
  margin-top: -10rpx;
  background: url($img-base + "career/careerAssessNew/flower.png");
  padding: 20rpx 0 50rpx 0;
  border-radius: 0 15rpx 15rpx 15rpx;
  background-position: center;
  background-size: 80%;
  background-repeat: no-repeat;
}

.imgFloatCenter {
  position: absolute;
  background: linear-gradient(
    to bottom,
    #bbeaf8 0%,
    #e4f8f2 50rpx,
    #f6f4df 80rpx,
    #f9f7e5 100%
  );
  width: calc(100% - 64rpx);
  height: 555rpx;
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
  right: 32rpx;
}
.blackBox {
  content: "";
  width: 10rpx;
  max-width: 10rpx;
  height: 38rpx;
  margin-top: 6rpx;
  margin-right: 20rpx;
  background: #000;
  color: #000;
  font-size: 26rpx;
}
.textImg {
  height: 130rpx;
  width: 100%;
  image-rendering: -webkit-optimize-contrast;
  z-index: 9;
  position: relative;
}
.smallTitleGreen {
  font-size: 34rpx;
  font-family: Source Han Sans CN;
  font-weight: bold;
  color: #000;
  //line-height: 120rpx;
}

.smallTitleRed {
  font-size: 34rpx;
  font-family: Source Han Sans CN;
  font-weight: bold;
  color: #ed5c22;
  //	line-height: 120rpx;
}

.onePartContent {
  font-size: 28rpx;
  color: #555555;
  margin-top: 30rpx;
  line-height: 40rpx;
  padding: 0 32rpx;
}
.smallTitleGreenLittle {
  color: #457766;
  font-size: 28rpx;
  font-weight: 600;
  padding: 0 32rpx;
  line-height: 40rpx;
}
.blueBox {
  width: 26rpx;
  height: 20rpx;
  background: linear-gradient(to right, #76a3ee 0%, #f9f7e5 100%);
  margin-top: 10rpx;
  margin-right: 10rpx;
}
.bottomImg {
  position: absolute;
  width: 100%;
  height: 40rpx;
  right: 0rpx;
  bottom: 0rpx;
}
</style>
